﻿using Zhp.Entity.Message.Email;
using Zhp.IService.Base;
using Zhp.Model.Message.Email;

namespace Zhp.IService.Message.Email
{
    public interface IEmailTemplateService : IBaseService<EmailTemplate>
    {
        public Task<List<EmailTemplateModel>> Query(QueryEmailTemplateParam p);
        public Task<bool> Create(EditEmailTemplateParam p);
        public Task<bool> Update(EditEmailTemplateParam p);
        public Task<bool> Delete(long id);
        public Task<bool> TestSendEmail(TestSendEmailParam p);
        public Task<(Stream, string, string)> ExportExcel();
        public Task<bool> ImportExcel(Stream stream);
    }
}
